/*
	Copyright (C) 2008 Demiurg-HG
	
	This program is free software; you can redistribute it and/or
	modify it under the terms of the GNU General Public License
	as published by the Free Software Foundation; either version 2
	of the License, or (at your option) any later version.
	
	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.
	
	You should have received a copy of the GNU General Public License
	along with this program; if not, write to the Free Software
	Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/
// ui_console.h - 

#pragma once


class EUIConsole /*: public IUIObject*/ {
	public:
							EUIConsole		( class EUserInterface *ui );
							~EUIConsole		( void );
								
		virtual void		KeyDown			( uint ch );
		virtual void		KeyPress		( uint ch );
		virtual void		MouseMove		( const mouseInput_s *mi ) {};
		virtual void		Activate		( void );
		virtual void		Deactivate		( void );
		virtual void		Draw			( void );
		virtual const char *Name			( void ) { return "console"; }
		
		bool				IsOpened		( void ) { return is_opened; }
		
	protected:
		IVar		*ui_con_speed;
	
		EUserInterface			*ui;
		IRenderSystem			*rs;
		
		float	y_offset;
		int		scroll;
		
		bool	is_opened;
		
		string	command_line;
	};